package cc.sunwl;

import cc.sunwl.decorator.ConcreteComponent;
import cc.sunwl.decorator.ConcreteDecoratorA;
import cc.sunwl.decorator.ConcreteDecoratorB;

public class App {
    public static void main(String[] args) {
        ConcreteComponent concreteComponent = new ConcreteComponent();
        ConcreteDecoratorA a = new ConcreteDecoratorA();
        ConcreteDecoratorB b = new ConcreteDecoratorB();

        a.setComponent(concreteComponent);
        b.setComponent(a);

        b.Operation();
    }
}
